﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TemplateMatch
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void btnCreateTemplates_Click(object sender, EventArgs e)
        {
            openFileDialog1.FileName = string.Empty;
            openFileDialog1.Title = "Select an image with template...";
            openFileDialog1.Filter = "Image Files|*.jpg;*.png";
            if(openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                CreateTemplates frm = new CreateTemplates(openFileDialog1.FileName);
                frm.ShowDialog();
            }
        }
    }
}
